package com.situ.mall.service;

import com.situ.common.util.PageResult;
import com.situ.mall.pojo.entity.Order;
import com.situ.mall.pojo.entity.OrderItem;
import com.situ.mall.pojo.query.OrderQuery;
import com.situ.mall.pojo.vo.OrderVO;

import java.util.List;

public interface IOrderService {
    void add(Order order);

    List<OrderVO> list(OrderQuery orderQuery);

    PageResult selectByPage(OrderQuery orderQuery);

    List<OrderItem> orderItemByOrderNo(Long orderNo);

    void cancelOrder(Order order);

    Order orderByOrderNo(Long orderNo);

    void deleteOrder(Order order);

    void update(Order order);

    void payOrderSuccess(Order order);

    Integer checkUserOrder(Integer userId);

    void buyNow(Order order, OrderItem orderItem);

//    PageResult list(OrderQuery orderQuery);
}
